/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.hotel.test.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * This class is used by SOAP remote services.
 *
 * @author    Vien-IT
 * @generated
 */
public class TblCommentSoap implements Serializable {
	public static TblCommentSoap toSoapModel(TblComment model) {
		TblCommentSoap soapModel = new TblCommentSoap();

		soapModel.setCommentId(model.getCommentId());
		soapModel.setUserId(model.getUserId());
		soapModel.setUserName(model.getUserName());
		soapModel.setCreateDate(model.getCreateDate());
		soapModel.setModifiedDate(model.getModifiedDate());
		soapModel.setComment(model.getComment());
		soapModel.setHotelId(model.getHotelId());

		return soapModel;
	}

	public static TblCommentSoap[] toSoapModels(TblComment[] models) {
		TblCommentSoap[] soapModels = new TblCommentSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static TblCommentSoap[][] toSoapModels(TblComment[][] models) {
		TblCommentSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new TblCommentSoap[models.length][models[0].length];
		}
		else {
			soapModels = new TblCommentSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static TblCommentSoap[] toSoapModels(List<TblComment> models) {
		List<TblCommentSoap> soapModels = new ArrayList<TblCommentSoap>(models.size());

		for (TblComment model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new TblCommentSoap[soapModels.size()]);
	}

	public TblCommentSoap() {
	}

	public long getPrimaryKey() {
		return _commentId;
	}

	public void setPrimaryKey(long pk) {
		setCommentId(pk);
	}

	public long getCommentId() {
		return _commentId;
	}

	public void setCommentId(long commentId) {
		_commentId = commentId;
	}

	public long getUserId() {
		return _userId;
	}

	public void setUserId(long userId) {
		_userId = userId;
	}

	public String getUserName() {
		return _userName;
	}

	public void setUserName(String userName) {
		_userName = userName;
	}

	public Date getCreateDate() {
		return _createDate;
	}

	public void setCreateDate(Date createDate) {
		_createDate = createDate;
	}

	public Date getModifiedDate() {
		return _modifiedDate;
	}

	public void setModifiedDate(Date modifiedDate) {
		_modifiedDate = modifiedDate;
	}

	public String getComment() {
		return _comment;
	}

	public void setComment(String comment) {
		_comment = comment;
	}

	public long getHotelId() {
		return _hotelId;
	}

	public void setHotelId(long hotelId) {
		_hotelId = hotelId;
	}

	private long _commentId;
	private long _userId;
	private String _userName;
	private Date _createDate;
	private Date _modifiedDate;
	private String _comment;
	private long _hotelId;
}